//
//  ChainProtocolAgreeVC.m
//  Chain
//
//  Created by zhaosh on 2018/4/13.
//  Copyright © 2018年 zhaosh. All rights reserved.
//

#import "ChainProtocolAgreeVC.h"

@interface ChainProtocolAgreeVC ()
@end

@implementation ChainProtocolAgreeVC

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(CGFLOAT_MIN * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        UIViewController *vc = [self.navigationController.viewControllers lastObject];
        if (vc.fd_prefersNavigationBarHidden) {
            [self.navigationController setNavigationBarHidden:YES animated:NO];
        } else {
            [self.navigationController setNavigationBarHidden:NO animated:NO];
        }
    });
}

-(void)viewDidLoad{
    [super viewDidLoad];
    [self setHeadView:self.view withLeftBtnText:@"chainBack" withHeadLable:@"用户协议" withRightBntText:@""];
}

- (void)backAction{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
